import{
    tips
}from '../common/layer';

const validate=(data)=> {
    if (data.rolename === '') {
        tips('角色名不能为空', $('#rolename'));
        return;
    }
     if (data.authlist === '') {
        tips('至少选择一项权限', $('#authlist'));
        return;
    }
    return true;
};

export {validate}